package com.bingfor.jpushdemo;

import android.app.Application;
import android.content.Context;

import cn.jpush.android.api.BasicPushNotificationBuilder;
import cn.jpush.android.api.JPushInterface;

/**
 * Created by LY on 2017/6/5.
 */

public class App extends Application {

    private static Context mContext;

    @Override
    public void onCreate() {
        super.onCreate();


    mContext = this.getApplicationContext();
        JPushInterface.setDebugMode(true);
        JPushInterface.init(this);
        BasicPushNotificationBuilder builder = new BasicPushNotificationBuilder(mContext);
        builder.statusBarDrawable = R.drawable.ic_launcher;
        JPushInterface.setPushNotificationBuilder(1, builder);
    }
}
